<?php

/**
 * preciosxmodelos form.
 *
 * @package    gescell
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class preciosxmodelosForm extends BasepreciosxmodelosForm
{
  public function configure()

  {
      $this->widgetSchema['modelos_id'] = new sfWidgetFormChoice(array(
         'choices'          => array(),
         'renderer_class'   => 'sfWidgetFormPropelJQueryAutocompleter',
         'renderer_options' => array(
         'model'            => 'modelos',
         'url'              => ('autocompletar')
    )
    ));
  }
  /*public function isValid(){
      $modelos_id = $this['modelos_id']->getValue();
      $precios_id = $this['listadeprecios_id']->getValue();
      $id         = $this['id']->getValue();
      if(!preciosxmodelosPeer::ClaveRepetida($modelos_id, $precios_id, $id))
        return parent::isValid();
      else
          return false;
  }*/
}
